package com.zf.apartment.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zf.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 公寓和地理位置关系对象 flats_location
 *
 * @author ruoyi
 * @date 2024-10-01
 */
@TableName(resultMap = "com.zf.apartment.mapper.FlatsLocationMapper.FlatsLocationResult")
public class FlatsLocation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 地理位置ID */
    @TableId(value = "location_id",type = IdType.AUTO)
    private Long locationId;

    /** 公寓ID */
    private Long flatsId;

    public void setLocationId(Long locationId)
    {
        this.locationId = locationId;
    }

    public Long getLocationId()
    {
        return locationId;
    }
    public void setFlatsId(Long flatsId)
    {
        this.flatsId = flatsId;
    }

    public Long getFlatsId()
    {
        return flatsId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("locationId", getLocationId())
                .append("flatsId", getFlatsId())
                .toString();
    }
}